import Https from '@/utils/https'

// 新增访问密钥
const addAKSK = (params) => Https.post('/api/v1/management/AKSK/createAccessKey', params)
// 获取密钥列表
const getAKList = () => Https.get('/api/v1/management/AKSK/getAccessKey')
// 编辑密钥描述
const editAKDes = (params) => Https.post('/api/v1/management/AKSK/updateDescription', params)

// 编辑密钥状态
const editAKStatus = (params) => Https.post('/api/v1/management/AKSK/updateAKState', params)

// 删除密钥
const delAK = (params) => Https.post('/api/v1/management/AKSK/deleteAccessKey', params, { json: false })


export {
    addAKSK, getAKList, editAKDes, editAKStatus, delAK,
}
